package com.berte.snake;

import java.net.URL;

import javax.swing.ImageIcon;

//存放外部数据
public class Data {
    //头部的图片
    //属于反射
    public static URL headerURL = Data.class.getResource("/snake/statics/header.png");
    public static URL bodyURL = Data.class.getResource("/snake/statics/body.png");
    public static URL downURL = Data.class.getResource("/snake/statics/down.png");
    public static URL foodURL = Data.class.getResource("/snake/statics/food.png");
    public static URL leftURL = Data.class.getResource("/snake/statics/left.png");
    public static URL rightURL = Data.class.getResource("/snake/statics/right.png");
    public static URL upURL = Data.class.getResource("/snake/statics/up.png");

    public static ImageIcon header = new ImageIcon(headerURL);
    public static ImageIcon snake_body = new ImageIcon(bodyURL);
    public static ImageIcon snake_down = new ImageIcon(downURL);
    public static ImageIcon snake_food = new ImageIcon(foodURL);
    public static ImageIcon snake_left = new ImageIcon(leftURL);
    public static ImageIcon snake_right = new ImageIcon(rightURL);
    public static ImageIcon snake_up = new ImageIcon(upURL);
}
